package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Tel      string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(50)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(50)"`
}
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}
type Book struct {
	gorm.Model
	BookNo   string `gorm:"type:varchar(50)"` //仓库编码
	BookName string `gorm:"type:varchar(50)"` //仓库名称
	BookAsd  string `gorm:"type:varchar(50)"` //仓库地点
}
type BookList struct {
	gorm.Model
	Bid          int    `gorm:"type:int"`         //仓库id
	BookListNo   string `gorm:"type:varchar(50)"` //订单编码
	BookListName string `gorm:"type:varchar(50)"` //订单名称
	BookListLx   string `gorm:"type:varchar(50)"` ///订单类型
}
type BookDetail struct {
	BookNo       string `gorm:"type:varchar(50)"` //仓库编码
	BookName     string `gorm:"type:varchar(50)"` //仓库名称
	BookAsd      string `gorm:"type:varchar(50)"` //仓库地点
	BookListNo   string `gorm:"type:varchar(50)"` //订单编码
	BookListName string `gorm:"type:varchar(50)"` //订单名称
	BookListLx   string `gorm:"type:varchar(50)"` ///订单类型
}
